﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>类型详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../static/css/font.css">
    <link rel="stylesheet" href="../../../static/css/weadmin.css">
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
        .showleft {
            text-align: left;
            min-width: 150px;
        }
    </style>
</head>
<body>
    <div class="weadmin-body">
        <div class="layui-form-item">
            <label class="layui-form-label">
                类型名称：
            </label>
            <label id="TTName" class="layui-form-label showleft">
            </label>
            <label class="layui-form-label">
                类型描述：
            </label>
            <label id="TTDescribe" class="layui-form-label showleft">
            </label>
        </div>
    </div>
    <script src="../../../lib/layui/layui.js" charset="utf-8"></script>
    <script src="../../../static/js/common.js" charset="utf-8"></script>

    <script>
        layui.use(['jquery', 'layer'], function () {
            var $ = layui.jquery,
                layer = layui.layer;
            $.support.cors = true;
            $(function () {
                $.ajax({
                    url: ApiUrl + "TrainType",
                    type: 'get',
                    dataType: 'json',
                    cache: false,
                    headers: {
                        "userid": JSON.parse(window.localStorage.authInfo).UserId,
                        "signtoken": JSON.parse(window.localStorage.authInfo).SignToken,
                    },
                    data: { TTID: getUrlParam("TTID") },
                    success: function (data) {
                        var json = JSON.parse(data);
                        for (var key in json) {
                            $("#" + key).html(json[key]);
                        }
                        //if (data.StatusCode == 200) {
                        //    layer.alert("增加成功", { icon: 6 }, function (index) {
                        //        parent.layer.close(index);
                        //    })
                        //}
                        //else if (data.StatusCode == 403) {
                        //    layer.alert(data.Info, function () {
                        //        location.href = './login.html';
                        //    })
                        //}
                        //else {
                        //    layer.msg(data.Info);
                        //}
                    }
                });
            })
        });
    </script>
</body>
</html>